package com.zdsoft.finance.product.service;

import java.util.List;

import com.zdsoft.finance.base.service.BaseService;
import com.zdsoft.finance.common.exception.BusinessException;
import com.zdsoft.finance.product.entity.Product;
import com.zdsoft.finance.product.entity.ProductRepayOrder;

/**
 * 产品还款顺序配置
 * 小额贷款使用
 * @author longwei
 * @date 2016/11/22
 * @version 1.0
 */
public interface ProductRepayOrderService extends BaseService<ProductRepayOrder>{

	/**
	 * 初始化还款顺序
	 * @param product 产品实体
	 * @throws BusinessException 业务异常
	 */
	public void initRepayOrder(Product product) throws BusinessException;
	
	/**
	 * 通过还款顺序对象查询
	 * @param productRepayOrder 还款顺序对象
	 * @return 还款顺序集合
	 * @throws BusinessException 业务异常
	 */
	public List<ProductRepayOrder> queryByCons(ProductRepayOrder productRepayOrder) throws BusinessException;
	
	/**
	 * 修改还款顺序
	 * @param normal 正常项目还款顺序
	 * @param notNormal 不正常项目还款顺序
	 * @throws BusinessException 业务异常
 	 */
	public void updateProductRepayFirstOrder(String[] normal,String[] notNormal) throws BusinessException;
}
